<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>角色管理 - 管理系统</title>
    <link rel="stylesheet" href="css/http_cdn.jsdelivr.net_npm_bootstrap-icons@1.10.0_font_bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #3498db;
            --secondary-color: #2c3e50;
            --accent-color: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #34495e;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }

        body {
            background-color: #f5f7fa;
            color: #333;
            padding: 20px;
        }

        .page-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .page-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--secondary-color);
        }

        .btn {
            padding: 8px 16px;
            border-radius: 4px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: #2980b9;
        }

        .btn i {
            margin-right: 5px;
        }

        .card {
            background-color: white;
            border-radius: 6px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
            overflow: hidden;
        }

        .card-header {
            padding: 15px 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .card-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--dark-color);
        }

        .card-body {
            padding: 20px;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table th, .table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }

        .table th {
            background-color: #f8f9fa;
            font-weight: 600;
            color: var(--dark-color);
        }

        .table tr:hover {
            background-color: #f8f9fa;
        }

        .badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        .badge-primary {
            background-color: rgba(52, 152, 219, 0.1);
            color: var(--primary-color);
        }

        .badge-success {
            background-color: rgba(46, 204, 113, 0.1);
            color: #2ecc71;
        }

        .badge-warning {
            background-color: rgba(241, 196, 15, 0.1);
            color: #f1c40f;
        }

        .action-btn {
            border: none;
            background: none;
            cursor: pointer;
            color: var(--primary-color);
            margin: 0 5px;
            font-size: 14px;
        }

        .action-btn.edit {
            color: var(--primary-color);
        }

        .action-btn.delete {
            color: var(--accent-color);
        }

        .search-box {
            position: relative;
            margin-bottom: 20px;
        }

        .search-box input {
            width: 100%;
            padding: 10px 15px 10px 40px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }

        .search-box i {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #95a5a6;
        }
    </style>
</head>
<body>
<div class="page-header">
    <h1 class="page-title">角色管理</h1>
    <button class="btn btn-primary">
        <i class="bi bi-plus-circle"></i> 新增角色
    </button>
</div>

<div class="card">
    <div class="card-header">
        <h3 class="card-title">角色列表</h3>
        <div class="search-box">
            <i class="bi bi-search"></i>
            <input type="text" placeholder="搜索角色...">
        </div>
    </div>
    <div class="card-body">
        <table class="table">
            <thead>
            <tr>
                <th>角色名称</th>
                <th>角色标识</th>
                <th>状态</th>
                <th>创建时间</th>
                <th>描述</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>超级管理员</td>
                <td>admin</td>
                <td><span class="badge badge-success">启用</span></td>
                <td>2023-01-15</td>
                <td>拥有所有权限</td>
                <td>
                    <button class="action-btn edit"><i class="bi bi-pencil"></i> 编辑</button>
                    <button class="action-btn delete"><i class="bi bi-trash"></i> 删除</button>
                </td>
            </tr>
            <tr>
                <td>内容管理员</td>
                <td>content_admin</td>
                <td><span class="badge badge-success">启用</span></td>
                <td>2023-02-20</td>
                <td>管理内容和产品</td>
                <td>
                    <button class="action-btn edit"><i class="bi bi-pencil"></i> 编辑</button>
                    <button class="action-btn delete"><i class="bi bi-trash"></i> 删除</button>
                </td>
            </tr>
            <tr>
                <td>订单管理员</td>
                <td>order_admin</td>
                <td><span class="badge badge-success">启用</span></td>
                <td>2023-03-10</td>
                <td>管理订单和客户</td>
                <td>
                    <button class="action-btn edit"><i class="bi bi-pencil"></i> 编辑</button>
                    <button class="action-btn delete"><i class="bi bi-trash"></i> 删除</button>
                </td>
            </tr>
            <tr>
                <td>数据分析师</td>
                <td>data_analyst</td>
                <td><span class="badge badge-warning">禁用</span></td>
                <td>2023-04-05</td>
                <td>查看分析数据</td>
                <td>
                    <button class="action-btn edit"><i class="bi bi-pencil"></i> 编辑</button>
                    <button class="action-btn delete"><i class="bi bi-trash"></i> 删除</button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>